package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {
    List<Supplier> selectLists(@Param("page") Integer page,
                              @Param("rows") Integer rows,
                              @Param("supplierName") String supplierName);

    void addSupplier(Supplier supplier);

    void update(Supplier supplier);

    Supplier getSupplierById(Integer id);

    void deleteSupplier(@Param("idList") List<Integer> idList);

    Integer getSupplierCount(String supplierName);
}
